<?php

class Core_Controller_Error extends Controller
{
	public function init()
	{
		Agis::set('theme', null);
	}

	public function actionError404($request, $response)
	{

	}

	/**
	 * permission deny
	 */
	public function actionErorr403($request, $response)
	{
		if (!$this -> _request instanceof Request_Http)
		{
			$this -> setNoRender(true);
		}
	}

	/**
	 * accept any.
	 */
	public function checkPermission($actionId, $user)
	{
		return 1;
	}

}
